package love.unknown.fruit.dao;

import love.unknown.fruit.pojo.Fruit;

import java.util.List;

public interface FruitDao {
    //查询库存链表
    List<Fruit> getFruitList();

    //新增库存
    boolean addFruit(Fruit fruit);

    //修改库存
    boolean updateFruit(Fruit fruit);

    //根据名称查询特定库存
    Fruit getFruitByName(String fname);

    //删除特定库存
    boolean delFruit(String fname);

}
